<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo (C("SYS_TITLE")); ?></title>
<link href="/wwyl/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="/wwyl/Public/Admin/css/page.css" rel="stylesheet" type="text/css" />
<style>
.file {width:102px;height:34px;opacity:0;filter:alpha(opacity=0);cursor:pointer;}
<!--权限样式-->
#wrap a{text-decoration:none; color:#000;}
#wrap a:hover{ color:#CCC;}
#wrap{ width:94%; height:auto; overflow:hidden; margin:20px auto; padding:10px 20px; border:1px solid #ccc;}
#wrap .add-app{ display:block; width:100px; height:20px; line-height:20px; text-align:center; background:#670768; color:#fff; border-radius:4px;}
#wrap .app{ padding:5px; border:1px solid #f6f6f6; border-radius:4px; width:1000px;}
#wrap .app p{ height:20px; line-height:20px;}
#wrap .app p strong{ font-size:20px; color:#0b99d8}
#wrap .app dl{ margin:10px 0; border:1px solid #f6f6f6; height:auto; overflow:hidden;border-radius:4px;}
#wrap .app dl dt{ display:block; height:25px; line-height:25px; background:#e6e6fa; text-indent:25px;}
#wrap .app dl dt strong{ font-size:14px; color:#61a1fa;}
#wrap .app dl dd{ margin:5px; display:block; height:18px;; width:185px; line-height:18px; text-align:left;  float:left; font-size:16px;} 
</style>

<!--编辑器-->
<script type="text/javascript" src="/wwyl/Public/Admin/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/wwyl/Public/Admin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/wwyl/Public/Admin/ueditor/ueditor.all.min.js"></script>

<!---->
<script language="JavaScript" src="/wwyl/Public/Admin/js/jquery.js"></script>
<script type="text/javascript">
	$(function(){	
		//顶部导航切换
		$(".nav li a").click(function(){
			$(".nav li a.selected").removeClass("selected")
			$(this).addClass("selected");
		})	
	})	
	
	$(function(){	
		//导航切换
		$(".menuson li").click(function(){
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});
		
		$('.title').click(function(){
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if($ul.is(':visible')){
				$(this).next('ul').slideUp();
			}else{
				$(this).next('ul').slideDown();
			}
		});
	})	
	
	$(document).ready(function(){
	  $(".click").click(function(){
	  $(".tip").fadeIn(200);
	  });
	  
	  $(".tiptop a").click(function(){
	  $(".tip").fadeOut(200);
	});
	
	  $(".sure").click(function(){
	  $(".tip").fadeOut(100);
	});
	
	  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	});
	
	});
	
	//tabl 切换
	$(document).ready(function(e) {
		$('#sel li').click(function(){
			$(".tab-front").removeClass("tab-front").addClass("tab-back");
			$('#sel li a').removeClass();	
			$(this).find('a').attr('class','selected');
			$(this).removeClass("tab-back").addClass("tab-front");
			var i = $(this).index();
			$(".tabbody-div").hide();
			$(".tabbody-div").eq(i).show();
		});
	});
</script>

</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>首页</li>
    <li>系统管理</li>
  </ul>
</div>
<form action="<?php echo U('Sys/editDo');?>" method="post" enctype="multipart/form-data">
  <div class="formbody">
    <div class="formtitle">
      <div class="itab">
        <ul id='sel'>
          <li class="tab-front"><a class="selected" style="cursor:pointer;">基本信息</a></li>
          <li class="tab-back"><a class="" style="cursor:pointer;">底部信息</a></li>
          <li class="tab-back"><a class="" style="cursor:pointer;">联系我们</a></li>
          <li class="tab-back"><a class="" style="cursor:pointer;">插件</a></li>
        </ul>
      </div>
    </div>
    
    <ul class="forminfo">
      <div class="tabbody-div">
        <li>
          <label>网站名称</label>
          <input name="name" type="text" class="dfinput" value="<?php echo ($sys['name']); ?>"/>
          <i>网站名称不能超过100个字符</i></li>
        <li>
          <label>网站网址</label>
          <input name="url" type="text" class="dfinput" value="<?php echo ($sys['url']); ?>"/>
          <i>请一定要加  http:// 协议！ 网址不能超过150个字符</i></li>
        <li>
          <label>网站LOGO</label>
          <input name="logo" type="file"/>
          <i>最好上传png透明底图</i>&nbsp;&nbsp;&nbsp;&nbsp;<img src="/wwyl/<?php echo ($sys['logo']); ?>" width="80" height="50"></li>
        <li>
          <label>QQ客服</label>
          <input name="qq" type="text" class="dfinput" value="<?php echo ($sys['qq']); ?>"/>
          <i>多个请用 | 隔开 ！ 单个不需要 |  ，请不要超过200个字符</i></li>
        <li>
          <label>SEO标题</label>
          <input name="title" type="text" class="dfinput" value="<?php echo ($sys['title']); ?>"/>
          <i>seo标题不能超过300个字符</i></li>
        <li>
          <label>SEO关键字</label>
          <input name="keywords" type="text" class="dfinput" value="<?php echo ($sys['keywords']); ?>"/>
          <i>多个关键字用 ， 隔开！不能超过400个字符</i></li>
        <li>
          <label>SEO描述</label>
          <textarea name="description" cols="" rows="" class="textinput"><?php echo ($sys['description']); ?></textarea>
          <i>描述不能超过500个字符</i></li>
      </div>
      <div class="tabbody-div" style="display:none;">
        <li>
          <label>底部信息</label>
          <textarea id="foot" cols="" rows="" name="foot" style="margin-left:85px;"><?php echo ($sys['foot']); ?></textarea>
        <script type="text/javascript">
//把textarea替换成一个编辑器
UE.getEditor('foot',{
	initialFrameWidth:800,
	initialFrameHeight:300,
});
</script> 
       </li>
      </div>
      <div class="tabbody-div" style="display:none;">
        <li>
          <label>公司简介：</label>
          <textarea name="content" type="text" class="dfinput" ></textarea></li>
        
        <li>
          <label>地址：</label>
           <input type="text" name="place" type="text" class="dfinput"/><br/></li>
          
        
        <li>
          <label>联系电话：</label>
          <input type="text" name="call" type="text" class="dfinput" /><br/></li>
        
        
         <li>
          <label>邮箱：</label>
          <input type="text" name="email" type="text" class="dfinput"/><br/></li>
        
        
      </div>
      
      <div class="tabbody-div" style="display:none;">
        <li>
          <label>插件</label>
          <textarea id="plug" cols="" rows="" name ="plug" style="margin-left:85px;"><?php echo ($sys['plug']); ?></textarea>
          <script type="text/javascript">
//把textarea替换成一个编辑器
UE.getEditor('plug',{
	initialFrameWidth:800,
	initialFrameHeight:300,
});
</script> 
        </li>
      </div>
      <li>
        <label>&nbsp;</label>
        <input type="hidden" name='id' value="<?php echo ($id); ?>">
        <input type="hidden" name="logo" value="<?php echo ($sys['logo']); ?>">
        <input name="" type="submit" class="btn" value="确认保存"/>
      </li>
    </ul>
  </div>
  
</form>
</body>
</html>